package cn.good.yan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;


/**
 * SpringBoot项目
 * demo1： 基于数据库的数据源、自定义登录页
 *
 * @author shengren.yan
 * @create 2023-09-27
 */
// 基于注解的访问控制 - 开启角色判断
@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
@MapperScan("cn.good.yan.model.mapper")
@SpringBootApplication
public class BootApplication {

    public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);
    }

}